package com.koala.learn.javalearn;

/**
 * @author yantingrui
 * @date 2021/12/9   15:33
 */
public class Rabbit extends Animal{
//    public void crowl(){
//        this.crowl("zhi zhi"); //没有问题，继承了Animal中的protected方法——crowl(String)
//        Animal ani=new Animal();
//        ani.crowl("animail jiaojiao"); //wrong, The method crowl(String) from the type Animal is not visible
//        Cat cat=new Cat();
//        cat.crowl("miao miao"); //wrong, The method crowl(String) from the type Animal is not visible
//    }
}
